package ninth.线程操作的相关方法;

public class 主方法的优先级是 {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getPriority());
    }
}
/**
 * 主方法的优先级是 5
 * 5 对应的是NORM_PRIORITY 这个中等优先级
 */

/*
D:\WorkSpaces\Java\jdk-21\bin\java.exe "-javaagent:D:\Software\IntelliJ IDEA\IntelliJ IDEA 2023.3.2\lib\idea_rt.jar=56539:D:\Software\IntelliJ IDEA\IntelliJ IDEA 2023.3.2\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\WorkSpaces\JavaDevelopBase_start_329\out\production\JavaDevelopBase_start_329 ninth.线程操作的相关方法.主方法的优先级是
5

Process finished with exit code 0

 */